<template>
  <div>
    {{msg}}
    <button @click="rev">翻转</button>
  </div>
  
</template>

<script>
export default {


  data() {
    return {
      msg:'HELLO,WORLD'
    };
  },

 
  methods: {
    rev(){
      const arr = this.msg.split('')
      this.msg = arr.reverse().join('')
    }
  },
};
</script>

<style>

</style>